package health_system.health_system.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/api/public/websocket")
public class WebSocketTestApiController {

    @GetMapping("/info")
    public ResponseEntity<Map<String, Object>> getWebSocketInfo() {
        Map<String, Object> info = new HashMap<>();
        info.put("endpointUrl", "/api/moment/ws");
        info.put("status", "available");
        info.put("testPageUrl", "/api/websocket-test.html");
        return ResponseEntity.ok(info);
    }
} 